#undef	FONT_H
#undef	FONT_W
#undef	FONT_8x8
#undef	FONT_8x16
#undef	FONT_16x16
#undef	FONT_LOGO8x16
#undef	WORK_DEFINE
#undef	GET_FONT
#undef	GET_CURSOR
#undef	PUT_FONT

#undef	MENU2PIXEL



#define	FONT_H	8
#define	FONT_W	4

#define	FONT_8x8()				\
	font_inc  = 1; 				\
	font_dup  = FALSE;			\
	font_skip = 2;

#define	FONT_8x16()				\
	font_inc  = 2;				\
	font_dup  = FALSE;			\
	font_skip = 2;

#define	FONT_16x16()				\
	font_inc  = 4;				\
	font_dup  = FALSE;			\
	font_skip = 2;

#define	FONT_LOGO8x16()				\
	font_inc  = 2*Q8GR_LOGO_W;		\
	font_dup  = FALSE;			\
	font_skip = 2;

#define	WORK_DEFINE()	Ulong mg=MIXED_PIXEL( src->foreground,src->background )

#define	GET_FONT()	( *font_ptr | *(font_ptr+font_inc/2) )

#define	GET_CURSOR()	( *cur_ptr  | *(cur_ptr+1) )

#define	PUT_FONT()					\
	if     ( (style&0xc0) == 0xc0 ){ dst[0] = fg; }	\
	else if( (style&0xc0) == 0x00 ){ dst[0] = bg; }	\
	else                           { dst[0] = mg; }	\
	if     ( (style&0x30) == 0x30 ){ dst[1] = fg; }	\
	else if( (style&0x30) == 0x00 ){ dst[1] = bg; }	\
	else                           { dst[1] = mg; }	\
	if     ( (style&0x0c) == 0x0c ){ dst[2] = fg; }	\
	else if( (style&0x0c) == 0x00 ){ dst[2] = bg; }	\
	else                           { dst[2] = mg; }	\
	if     ( (style&0x03) == 0x03 ){ dst[3] = fg; }	\
	else if( (style&0x03) == 0x00 ){ dst[3] = bg; }	\
	else                           { dst[3] = mg; }	\
	dst += SCREEN_WIDTH;


#include "screen-menu.h"
